package com.ruoyi.finances.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.finances.domain.TbAbstract;
import com.ruoyi.finances.domain.TbCertFilcateWord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finances.mapper.TbProofMapper;
import com.ruoyi.finances.domain.TbProof;
import com.ruoyi.finances.service.ITbProofService;

/**
 * 凭证设置Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-15
 */
@Service
public class TbProofServiceImpl implements ITbProofService
{
    @Autowired
    private TbProofMapper tbProofMapper;

    /**
     * 查询凭证设置
     *
     * @param id 凭证设置主键
     * @return 凭证设置
     */
    @Override
    public TbProof selectTbProofById(Long id)
    {
        return tbProofMapper.selectTbProofById(id);
    }

    /**
     * 查询凭证设置列表
     *
     * @param tbProof 凭证设置
     * @return 凭证设置
     */
    @Override
    public List<TbProof> selectTbProofList(TbProof tbProof)
    {
        return tbProofMapper.selectTbProofList(tbProof);
    }

    /**
     * 新增凭证设置
     *
     * @param tbProof 凭证设置
     * @return 结果
     */
    @Override
    public int insertTbProof(TbProof tbProof)
    {
        return tbProofMapper.insertTbProof(tbProof);
    }

    /**
     * 修改凭证设置
     *
     * @param tbProof 凭证设置
     * @return 结果
     */
    @Override
    public int updateTbProof(TbProof tbProof)
    {
        return tbProofMapper.updateTbProof(tbProof);
    }

    /**
     * 批量删除凭证设置
     *
     * @param ids 需要删除的凭证设置主键
     * @return 结果
     */
    @Override
    public int deleteTbProofByIds(Long[] ids)
    {
        return tbProofMapper.deleteTbProofByIds(ids);
    }

    /**
     * 删除凭证设置信息
     *
     * @param id 凭证设置主键
     * @return 结果
     */
    @Override
    public int deleteTbProofById(Long id)
    {
        return tbProofMapper.deleteTbProofById(id);
    }

    @Override
    public List<TbAbstract> FindAbstract() {
        return tbProofMapper.FindAbstract();
    }

    @Override
    public List<TbCertFilcateWord> FindWord() {
        return tbProofMapper.FindWord();
    }
}
